﻿
//双击打开目录
function opendir(dir) {
    var _path = $('#path').val(); 
    var _selpath = $('#selpath').val(); 
    var _extname = $('#extname').val();  
    window.location.href = 'AdminFileSelectWork.aspx?extname=' + _extname + '&path=' + _path + '/' + dir;
}
//单击设置目录
function divClick(obj, name) {
    var _cpath = $("#path").val();
    var rootpath = window.parent.getRootPath();
     _cpath += '/' + name;
     _cpath = _cpath.replace(rootpath, '').replace('//', '/');
     if (_cpath.indexOf("/") != 0) {
         _cpath = '/' + _cpath;
     }
     //alert(_cpath);
    window.parent.$('#selectpath').val(_cpath);
}

function filedblclick() { 
  parent.$("#btok").click()
}